<template>
    <a-layout-header class="header">
        <div class="logo" />
        <a-menu
                theme="dark"
                mode="horizontal"
                v-model:selectedKeys="selectedKeys1"
                :style="{ lineHeight: '64px' }"
        >
            <a-menu-item key="/">
                <route-link to="/">
                    首页
                </route-link>
            </a-menu-item>
            <a-menu-item key="/admin/ebook">
                <route-link to="/admin/ebook">
                    电子书管理
                </route-link>
            </a-menu-item>
            <a-menu-item key="/about">
                <route-link to="/about">
                    关于我们
                </route-link>
            </a-menu-item>
        </a-menu>
    </a-layout-header>
</template>

<script lang="ts">
    import { defineComponent } from 'vue';

    export default defineComponent({
        // 给组件名命
        name: 'the-header',
    });
</script>

<style>
     .logo {
        width: 120px;
        height: 31px;
        background: rgba(255, 255, 255, 0.2);
        margin: 16px 28px 16px 0;
        float: left;
    }
</style>